package com.alinesno.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.alinesno.cloud.common.web.basic.auth.enable.EnableHttpBasicAuth;
import com.alinesno.cloud.common.web.basic.auth.enable.ScanPackage;
import com.alinesno.cloud.gateway.enable.GatewayBaseScan;

/**
 * 启动入口
 * 
 * @author WeiXiaoJin
 * @since 2018年8月7日 上午8:45:02
 */
@EnableJpaAuditing
@EnableHttpBasicAuth
@EntityScan({ScanPackage.BASIC_BACKENTITY , "com.alinesno.cloud.gateway.admin.entity"})
@EnableJpaRepositories({ScanPackage.BASIC_BACKREPOSITORY , "com.alinesno.cloud.gateway.admin.repository"}) 
@SpringBootApplication(scanBasePackages = GatewayBaseScan.baseScan)
public class GatewayAdminApplication {
	
	public static void main(String[] args) {
		SpringApplication.run(GatewayAdminApplication.class, args);
	}
	
}